package stephen.competition11;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;



public class StudentBase {
	public boolean delete(){
		DataBase bd=new DataBase();
		Connection con=bd.getCon();
		String sql="delete from student order by mark LIMIT 2;";
		try {
			PreparedStatement ps=con.prepareStatement(sql);
			ps.executeUpdate();
			if(ps!=null){
				ps.close();
			}
			if(con!=null){
				con.close();
			}
		} catch (SQLException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return true;
		
	}
}
